package encap.Schoolhomework;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
         int  key=0;
        boolean toop = true;
        String t;
        content con = new content();
        do {
            System.out.println("=====学生请假系统=====");
            System.out.println("1.学生\t\t2.教师\t\t3.退出");
            key = sc.nextInt();
            switch (key) {
                case 1:
                    System.out.println("====学生端====");
                    con.Outout();

                    break;
                case 2:System.out.println("====教师端====");
                        System.out.println("====学生请假情况====");
                        System.out.println(content.detail);
                        break;
                case 3: System.out.println("你确定要退出吗，退出选y，不退出选n");
                    t=sc.next();
                    if(t.equals("y")){
                        toop=false;
                    }else break;

            }
            if(key!=1&&key!=2&&key!=3){
                System.out.println("输入错误,已退出");
                toop=false;
            }

        } while (toop);

    }
}

